// $ANTLR 3.4 ./src/main/java/hero/antlr2/Simplest.g 2011-12-03 21:48:52
package hero.antlr2;

import org.antlr.runtime.*;
import java.util.Stack;
import java.util.List;
import java.util.ArrayList;

@SuppressWarnings({"all", "warnings", "unchecked"})
public class SimplestLexer extends Lexer {
    public static final int EOF=-1;
    public static final int DOC=4;
    public static final int ID=5;
    public static final int INT=6;
    public static final int NEWLINE=7;
    public static final int SHIT=8;
    public static final int TITLE=9;
    public static final int WS=10;

    // delegates
    // delegators
    public Lexer[] getDelegates() {
        return new Lexer[] {};
    }

    public SimplestLexer() {} 
    public SimplestLexer(CharStream input) {
        this(input, new RecognizerSharedState());
    }
    public SimplestLexer(CharStream input, RecognizerSharedState state) {
        super(input,state);
    }
    public String getGrammarFileName() { return "./src/main/java/hero/antlr2/Simplest.g"; }

    // $ANTLR start "DOC"
    public final void mDOC() throws RecognitionException {
        try {
            int _type = DOC;
            int _channel = DEFAULT_TOKEN_CHANNEL;
            // ./src/main/java/hero/antlr2/Simplest.g:4:5: ( 'doc' )
            // ./src/main/java/hero/antlr2/Simplest.g:4:7: 'doc'
            {
            match("doc"); 



            }

            state.type = _type;
            state.channel = _channel;
        }
        finally {
        	// do for sure before leaving
        }
    }
    // $ANTLR end "DOC"

    // $ANTLR start "SHIT"
    public final void mSHIT() throws RecognitionException {
        try {
            int _type = SHIT;
            int _channel = DEFAULT_TOKEN_CHANNEL;
            // ./src/main/java/hero/antlr2/Simplest.g:5:6: ( 'expr' )
            // ./src/main/java/hero/antlr2/Simplest.g:5:8: 'expr'
            {
            match("expr"); 



            }

            state.type = _type;
            state.channel = _channel;
        }
        finally {
        	// do for sure before leaving
        }
    }
    // $ANTLR end "SHIT"

    // $ANTLR start "TITLE"
    public final void mTITLE() throws RecognitionException {
        try {
            int _type = TITLE;
            int _channel = DEFAULT_TOKEN_CHANNEL;
            // ./src/main/java/hero/antlr2/Simplest.g:6:7: ( 'title' )
            // ./src/main/java/hero/antlr2/Simplest.g:6:9: 'title'
            {
            match("title"); 



            }

            state.type = _type;
            state.channel = _channel;
        }
        finally {
        	// do for sure before leaving
        }
    }
    // $ANTLR end "TITLE"

    // $ANTLR start "ID"
    public final void mID() throws RecognitionException {
        try {
            int _type = ID;
            int _channel = DEFAULT_TOKEN_CHANNEL;
            // ./src/main/java/hero/antlr2/Simplest.g:34:5: ( ( 'a' .. 'z' | 'A' .. 'Z' )+ )
            // ./src/main/java/hero/antlr2/Simplest.g:34:9: ( 'a' .. 'z' | 'A' .. 'Z' )+
            {
            // ./src/main/java/hero/antlr2/Simplest.g:34:9: ( 'a' .. 'z' | 'A' .. 'Z' )+
            int cnt1=0;
            loop1:
            do {
                int alt1=2;
                int LA1_0 = input.LA(1);

                if ( ((LA1_0 >= 'A' && LA1_0 <= 'Z')||(LA1_0 >= 'a' && LA1_0 <= 'z')) ) {
                    alt1=1;
                }


                switch (alt1) {
            	case 1 :
            	    // ./src/main/java/hero/antlr2/Simplest.g:
            	    {
            	    if ( (input.LA(1) >= 'A' && input.LA(1) <= 'Z')||(input.LA(1) >= 'a' && input.LA(1) <= 'z') ) {
            	        input.consume();
            	    }
            	    else {
            	        MismatchedSetException mse = new MismatchedSetException(null,input);
            	        recover(mse);
            	        throw mse;
            	    }


            	    }
            	    break;

            	default :
            	    if ( cnt1 >= 1 ) break loop1;
                        EarlyExitException eee =
                            new EarlyExitException(1, input);
                        throw eee;
                }
                cnt1++;
            } while (true);


            }

            state.type = _type;
            state.channel = _channel;
        }
        finally {
        	// do for sure before leaving
        }
    }
    // $ANTLR end "ID"

    // $ANTLR start "INT"
    public final void mINT() throws RecognitionException {
        try {
            int _type = INT;
            int _channel = DEFAULT_TOKEN_CHANNEL;
            // ./src/main/java/hero/antlr2/Simplest.g:35:5: ( ( '0' .. '9' )+ )
            // ./src/main/java/hero/antlr2/Simplest.g:35:9: ( '0' .. '9' )+
            {
            // ./src/main/java/hero/antlr2/Simplest.g:35:9: ( '0' .. '9' )+
            int cnt2=0;
            loop2:
            do {
                int alt2=2;
                int LA2_0 = input.LA(1);

                if ( ((LA2_0 >= '0' && LA2_0 <= '9')) ) {
                    alt2=1;
                }


                switch (alt2) {
            	case 1 :
            	    // ./src/main/java/hero/antlr2/Simplest.g:
            	    {
            	    if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {
            	        input.consume();
            	    }
            	    else {
            	        MismatchedSetException mse = new MismatchedSetException(null,input);
            	        recover(mse);
            	        throw mse;
            	    }


            	    }
            	    break;

            	default :
            	    if ( cnt2 >= 1 ) break loop2;
                        EarlyExitException eee =
                            new EarlyExitException(2, input);
                        throw eee;
                }
                cnt2++;
            } while (true);


            }

            state.type = _type;
            state.channel = _channel;
        }
        finally {
        	// do for sure before leaving
        }
    }
    // $ANTLR end "INT"

    // $ANTLR start "NEWLINE"
    public final void mNEWLINE() throws RecognitionException {
        try {
            int _type = NEWLINE;
            int _channel = DEFAULT_TOKEN_CHANNEL;
            // ./src/main/java/hero/antlr2/Simplest.g:36:8: ( ( '\\r' )? '\\n' )
            // ./src/main/java/hero/antlr2/Simplest.g:36:9: ( '\\r' )? '\\n'
            {
            // ./src/main/java/hero/antlr2/Simplest.g:36:9: ( '\\r' )?
            int alt3=2;
            int LA3_0 = input.LA(1);

            if ( (LA3_0=='\r') ) {
                alt3=1;
            }
            switch (alt3) {
                case 1 :
                    // ./src/main/java/hero/antlr2/Simplest.g:36:9: '\\r'
                    {
                    match('\r'); 

                    }
                    break;

            }


            match('\n'); 

            }

            state.type = _type;
            state.channel = _channel;
        }
        finally {
        	// do for sure before leaving
        }
    }
    // $ANTLR end "NEWLINE"

    // $ANTLR start "WS"
    public final void mWS() throws RecognitionException {
        try {
            int _type = WS;
            int _channel = DEFAULT_TOKEN_CHANNEL;
            // ./src/main/java/hero/antlr2/Simplest.g:37:5: ( ( ' ' | '\\t' )+ )
            // ./src/main/java/hero/antlr2/Simplest.g:37:9: ( ' ' | '\\t' )+
            {
            // ./src/main/java/hero/antlr2/Simplest.g:37:9: ( ' ' | '\\t' )+
            int cnt4=0;
            loop4:
            do {
                int alt4=2;
                int LA4_0 = input.LA(1);

                if ( (LA4_0=='\t'||LA4_0==' ') ) {
                    alt4=1;
                }


                switch (alt4) {
            	case 1 :
            	    // ./src/main/java/hero/antlr2/Simplest.g:
            	    {
            	    if ( input.LA(1)=='\t'||input.LA(1)==' ' ) {
            	        input.consume();
            	    }
            	    else {
            	        MismatchedSetException mse = new MismatchedSetException(null,input);
            	        recover(mse);
            	        throw mse;
            	    }


            	    }
            	    break;

            	default :
            	    if ( cnt4 >= 1 ) break loop4;
                        EarlyExitException eee =
                            new EarlyExitException(4, input);
                        throw eee;
                }
                cnt4++;
            } while (true);


            skip();

            }

            state.type = _type;
            state.channel = _channel;
        }
        finally {
        	// do for sure before leaving
        }
    }
    // $ANTLR end "WS"

    public void mTokens() throws RecognitionException {
        // ./src/main/java/hero/antlr2/Simplest.g:1:8: ( DOC | SHIT | TITLE | ID | INT | NEWLINE | WS )
        int alt5=7;
        switch ( input.LA(1) ) {
        case 'd':
            {
            int LA5_1 = input.LA(2);

            if ( (LA5_1=='o') ) {
                int LA5_8 = input.LA(3);

                if ( (LA5_8=='c') ) {
                    int LA5_11 = input.LA(4);

                    if ( ((LA5_11 >= 'A' && LA5_11 <= 'Z')||(LA5_11 >= 'a' && LA5_11 <= 'z')) ) {
                        alt5=4;
                    }
                    else {
                        alt5=1;
                    }
                }
                else {
                    alt5=4;
                }
            }
            else {
                alt5=4;
            }
            }
            break;
        case 'e':
            {
            int LA5_2 = input.LA(2);

            if ( (LA5_2=='x') ) {
                int LA5_9 = input.LA(3);

                if ( (LA5_9=='p') ) {
                    int LA5_12 = input.LA(4);

                    if ( (LA5_12=='r') ) {
                        int LA5_15 = input.LA(5);

                        if ( ((LA5_15 >= 'A' && LA5_15 <= 'Z')||(LA5_15 >= 'a' && LA5_15 <= 'z')) ) {
                            alt5=4;
                        }
                        else {
                            alt5=2;
                        }
                    }
                    else {
                        alt5=4;
                    }
                }
                else {
                    alt5=4;
                }
            }
            else {
                alt5=4;
            }
            }
            break;
        case 't':
            {
            int LA5_3 = input.LA(2);

            if ( (LA5_3=='i') ) {
                int LA5_10 = input.LA(3);

                if ( (LA5_10=='t') ) {
                    int LA5_13 = input.LA(4);

                    if ( (LA5_13=='l') ) {
                        int LA5_16 = input.LA(5);

                        if ( (LA5_16=='e') ) {
                            int LA5_18 = input.LA(6);

                            if ( ((LA5_18 >= 'A' && LA5_18 <= 'Z')||(LA5_18 >= 'a' && LA5_18 <= 'z')) ) {
                                alt5=4;
                            }
                            else {
                                alt5=3;
                            }
                        }
                        else {
                            alt5=4;
                        }
                    }
                    else {
                        alt5=4;
                    }
                }
                else {
                    alt5=4;
                }
            }
            else {
                alt5=4;
            }
            }
            break;
        case 'A':
        case 'B':
        case 'C':
        case 'D':
        case 'E':
        case 'F':
        case 'G':
        case 'H':
        case 'I':
        case 'J':
        case 'K':
        case 'L':
        case 'M':
        case 'N':
        case 'O':
        case 'P':
        case 'Q':
        case 'R':
        case 'S':
        case 'T':
        case 'U':
        case 'V':
        case 'W':
        case 'X':
        case 'Y':
        case 'Z':
        case 'a':
        case 'b':
        case 'c':
        case 'f':
        case 'g':
        case 'h':
        case 'i':
        case 'j':
        case 'k':
        case 'l':
        case 'm':
        case 'n':
        case 'o':
        case 'p':
        case 'q':
        case 'r':
        case 's':
        case 'u':
        case 'v':
        case 'w':
        case 'x':
        case 'y':
        case 'z':
            {
            alt5=4;
            }
            break;
        case '0':
        case '1':
        case '2':
        case '3':
        case '4':
        case '5':
        case '6':
        case '7':
        case '8':
        case '9':
            {
            alt5=5;
            }
            break;
        case '\n':
        case '\r':
            {
            alt5=6;
            }
            break;
        case '\t':
        case ' ':
            {
            alt5=7;
            }
            break;
        default:
            NoViableAltException nvae =
                new NoViableAltException("", 5, 0, input);

            throw nvae;

        }

        switch (alt5) {
            case 1 :
                // ./src/main/java/hero/antlr2/Simplest.g:1:10: DOC
                {
                mDOC(); 


                }
                break;
            case 2 :
                // ./src/main/java/hero/antlr2/Simplest.g:1:14: SHIT
                {
                mSHIT(); 


                }
                break;
            case 3 :
                // ./src/main/java/hero/antlr2/Simplest.g:1:19: TITLE
                {
                mTITLE(); 


                }
                break;
            case 4 :
                // ./src/main/java/hero/antlr2/Simplest.g:1:25: ID
                {
                mID(); 


                }
                break;
            case 5 :
                // ./src/main/java/hero/antlr2/Simplest.g:1:28: INT
                {
                mINT(); 


                }
                break;
            case 6 :
                // ./src/main/java/hero/antlr2/Simplest.g:1:32: NEWLINE
                {
                mNEWLINE(); 


                }
                break;
            case 7 :
                // ./src/main/java/hero/antlr2/Simplest.g:1:40: WS
                {
                mWS(); 


                }
                break;

        }

    }


 

}